const raw = {
  primary: [
    {
      url: "",
      name: "成果发布区",
      id: 1,
      color: "#ED8A5F",
    },
    {
      url: "vroMUXdx",
      name: "C区",
      id: 2,
      color: "#BE7CCE",
    },
    {
      url: "vroMUXdx",
      name: "D区",
      id: 3,
      color: "#DDBC6B",
    },
    {
      url: "vroMUXdx",
      name: "E区",
      id: 4,
      color: "#CC9160",
    },
    {
      url: "vroMUXdx",
      name: "F区",
      id: 5,
      color: "#67C0C9",
    },
    {
      url: "vroMUXdx",
      name: "G区",
      id: 6,
      color: "#3A6BD6",
    },
    {
      url: "vroMUXdx",
      name: "H区",
      id: 7,
      color: "#916CE5",
    },
    {
      url: "vroMUXdx",
      name: "I区",
      id: 8,
      color: "#80CE89",
    }
  ],
  secondary: [
    {
      p_id: 1, //对应primary的id
      bgclr: "#E36E3B",
      data: [
        {
          xuhao: "C1",
          url: "EZiPG0Rtzv&firstView=pano:138,qua:0.0272,0.8647,0.047,-0.4994",
          name: "视联动力信息技术股份有限公司",
          id: 1,
        },
        {
          xuhao: "C2",
          url: "EZiPG0Rtzv&firstView=pano:164,qua:0.0128,-0.0711,0.0009,0.9974",
          name: "齐心好视通",
          id: 2,
        },
        {
          xuhao: "C3",
          url: "EZiPG0Rtzv&firstView=pano:178,qua:-0.0297,0.0232,0.0007,0.9993",
          name: "上海卓繁信息技术股份有限公司",
          id: 3,
        },
        {
          xuhao: "C4",
          url: "EZiPG0Rtzv&firstView=pano:48,qua:-0.0003,0.9992,-0.0389,-0.0067",
          name: "信创联盟",
          id: 4,
        },
        {
          xuhao: "C5",
          url: "EZiPG0Rtzv&firstView=pano:52,qua:0,0.9999,-0.0145,-0.0003",
          name: "信创联盟",
          id: 5,
        },
        {
          xuhao: "C6",
          url: "EZiPG0Rtzv&firstView=pano:82,qua:0.0561,-0.0011,0.0001,0.9984",
          name: "工业和信息化部电子第五研究所",
          id: 6,
        },
        {
          xuhao: "C7",
          url: "EZiPG0Rtzv&firstView=pano:98,qua:0.0379,-0.0036,0.0001,0.9993",
          name: "联想集团",
          id: 7,
        },
      ],
    },//D区已添加完
    {
      p_id: 2,
      bgclr: "#DF9325",
      data: [
        {
          xuhao: "D1",
          url: "ivk5Yl7Fxf&firstView=pano:68,qua:-0.044,0.1685,0.0075,0.9847",
          name: "厦门市巨龙信息科技有限公司",
          id: 1,
        },
        {
          xuhao: "D2",
          url: "ivk5Yl7Fxf&firstView=pano:68,qua:-0.0084,0.9902,0.1213,0.0686",
          name: "珠海欧比特宇航科技股份有限公司",
          id: 2,
        },
        {
          xuhao: "D3",
          url: "ivk5Yl7Fxf&firstView=pano:6,qua:-0.0243,0.6735,0.0222,0.7385",
          name: "广东君略科技咨询有限公司",
          id: 3,
        },
        {
          xuhao: "D4",
          url: "ivk5Yl7Fxf&firstView=pano:34,qua:-0.0677,-0.0027,-0.0002,0.9977",
          name: "广州智能科技发展有限公司",
          id: 4,
        },
        {
          xuhao: "D5",
          url: "ivk5Yl7Fxf&firstView=pano:76,qua:-0.0969,0.2841,0.0289,0.9534",
          name: "广州市中智软件开发有限公司",
          id: 5,
        },
        {
          xuhao: "D6",
          url: "ivk5Yl7Fxf&firstView=pano:80,qua:-0.0003,0.9985,0.0539,0.0058",
          name: "广东方纬科技有限公司",
          id: 6,
        },
        {
          xuhao: "D7",
          url: "ivk5Yl7Fxf&firstView=pano:104,qua:-0.0219,-0.6712,-0.0198,0.7407",
          name: "武大吉奥信息技术有限公司",
          id: 7,
        },
        {
          xuhao: "D8",
          url: "ivk5Yl7Fxf&firstView=pano:132,qua:-0.104,-0.1995,-0.0213,0.9741",
          name: "中德人工智能研究院",
          id: 8,
        },
      ],
    },
    {
      p_id: 3, //对应primary的id
      bgclr: "#B53BD3",
      data: [
        {
          xuhao: "E1",
          url: "E8TBKcknpv&firstView=pano:82,qua:-0.0689,0.7164,0.0715,0.6905s",
          name: "中国航天科工集团第二研究院七〇六所",
          id: 1,
        },
        {
          xuhao: "E2",
          url: "E8TBKcknpv&firstView=pano:64,qua:-0.0844,0.7,0.0839,0.7041",
          name: "珠海金山办公软件有限公司",
          id: 2,
        },
        {
          xuhao: "E3",
          url: "E8TBKcknpv&firstView=pano:42,qua:0.0002,0.9954,0.0958,-0.0022",
          name: "广州软件应用技术研究所",
          id: 3,
        },
        {
          xuhao: "E4",
          url: "E8TBKcknpv&firstView=pano:22,qua:0.0036,0.9933,0.1111,-0.0325",
          name: "中智政源技术有限公司",
          id: 4,
        },
        {
          xuhao: "E5",
          url: "E8TBKcknpv&firstView=pano:0,qua:-0.0041,0.9959,0.0666,0.0614",
          name: "南方报业传媒集团",
          id: 5,
        },
        {
          xuhao: "E6",
          url: "E8TBKcknpv&firstView=pano:8,qua:-0.0964,-0.5223,-0.0596,0.8452",
          name: "北京国脉互联信息顾问有限公司",
          id: 6,
        },
        {
          xuhao: "E7",
          url: "E8TBKcknpv&firstView=pano:18,qua:-0.0802,-0.7163,-0.0834,0.6881",
          name: "广东紫慧旭光科技有限公司",
          id: 7,
        },
        {
          xuhao: "E8",
          url: "E8TBKcknpv&firstView=pano:100,qua:-0.0139,-0.7977,-0.0184,0.6026",
          name: "双杨信息科技（珠海）有限公司",
          id: 8,
        },
        {
          xuhao: "E9",
          url: "E8TBKcknpv&firstView=pano:98,qua:-0.0371,-0.7248,-0.0392,0.6868",
          name: "广州华资软件技术有限公司",
          id: 9,
        },
        {
          xuhao: "E10",
          url: "E8TBKcknpv&firstView=pano:94,qua:-0.0256,0.9611,0.0953,0.2581",
          name: "北京构力科技有限公司",
          id: 10,
        },
        {
          xuhao: "E11",
          url: "E8TBKcknpv&firstView=pano:90,qua:0.012,0.9754,0.2133,-0.0547",
          name: "深圳云天励飞技术股份有限公司",
          id: 11,
        },
      ],
    },
    {
      p_id: 4, //对应primary的id
      bgclr: "#13B1CC",
      data: [
        {
          xuhao: "F1",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:52,qua:-0.0907,-0.6889,-0.0875,0.7138",
          name: "360政企安全集团",
          id: 1,
        },
        {
          xuhao: "F2",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:66,qua:-0.0056,-0.112,-0.0006,0.9937",
          name: "北京永信至诚科技股份有限公司",
          id: 2,
        },
        {
          xuhao: "F3",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:70,qua:-0.0123,0.6965,0.012,0.7173",
          name: "开普数智科技（广东）有限公司",
          id: 3,
        },
        {
          xuhao: "F4",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:132,qua:0.0149,-0.4822,0.0082,0.8759",
          name: "北京安天网络安全技术有限公司",
          id: 4,
        },
        {
          xuhao: "F5",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:126,qua:-0.0608,-0.3719,-0.0244,0.926",
          name: "中孚信息股份有限公司",
          id: 5,
        },
        {
          xuhao: "F6",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:120,qua:0.0173,-0.5301,0.0108,0.8477",
          name: "广东中安网脉华南技术有限公司",
          id: 6,
        },
        {
          xuhao: "F7",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:116,qua:-0.0096,0.0067,0.0001,0.9999",
          name: "数安时代科技股份有限公司",
          id: 7,
        },
        {
          xuhao: "F8",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:48,qua:0.0001,0.9999,-0.0134,0.0106",
          name: "北京升鑫网络科技有限公司",
          id: 8,
        },
        {
          xuhao: "F9",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:46,qua:0.0001,0.9999,0.0065,-0.0085",
          name: "广东省电子商务认证有限公司",
          id: 9,
        },
        {
          xuhao: "F10",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:102,qua:-0.0007,0.9991,0.0356,0.0208",
          name: "杭州世平信息科技有限公司",
          id: 10,
        },
        {
          xuhao: "F11",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:32,qua:-0.0033,-0.7057,-0.0033,0.7085",
          name: "绿盟科技集团股份有限公司",
          id: 11,
        },
        {
          xuhao: "F12",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:48,qua:-0.1285,-0.0364,-0.0047,0.991",
          name: "天融信科技集团",
          id: 12,
        },
        {
          xuhao: "F13",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:76,qua:-0.0669,0.0605,0.0041,0.9959",
          name: "北京启明星辰信息安全技术有限公司",
          id: 13,
        },
        {
          xuhao: "F14",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:90,qua:-0.0789,0.0228,0.0018,0.9966",
          name: "杭州安恒信息技术股份有限公司",
          id: 14,
        },
        {
          xuhao: "F15",
          url: "JvTJdaTsSZ&lang=zh&firstView=pano:102,qua:-0.078,-0.0208,-0.0016,0.9967",
          name: "广东广宇科技发展有限公司",
          id: 15,
        },
      ],
    },
    {
      p_id: 5, //对应primary的id
      bgclr: "#598BF6",
      data: [
        {
          xuhao: "G1",
          url: "4qcNZearZT&lang=zh&firstView=pano:2,qua:-0.0627,0.6967,0.0614,0.712",
          name: "新华三技术有限公司",
          id: 1,
        },
        {
          xuhao: "G2",
          url: "4qcNZearZT&lang=zh&firstView=pano:142,qua:-0.0029,-0.7277,-0.0031,0.6859",
          name: "广东省医学科学院广东省人民医院",
          id: 2,
        },
        {
          xuhao: "G3",
          url: "4qcNZearZT&lang=zh&firstView=pano:148,qua:-0.0117,0.5184,0.0071,0.855",
          name: "广州南科信息科技有限公司",
          id: 3,
        },
        {
          xuhao: "G4",
          url: "4qcNZearZT&lang=zh&firstView=pano:116,qua:0,-0.7162,0,0.6978",
          name: "北明软件有限公司",
          id: 4,
        },
        {
          xuhao: "G5",
          url: "4qcNZearZT&lang=zh&firstView=pano:116,qua:-0.0017,0.7043,0.0017,0.7099",
          name: "北京东方通科技股份有限公司",
          id: 5,
        },
        {
          xuhao: "G6",
          url: "4qcNZearZT&lang=zh&firstView=pano:108,qua:-0.0055,-0.7217,-0.0057,0.6922",
          name: "广东金赋科技股份有限公司",
          id: 6,
        },
        {
          xuhao: "G7",
          url: "4qcNZearZT&lang=zh&firstView=pano:108,qua:-0.0089,0.7068,0.0089,0.7073",
          name: "深圳太极云软技术有限公司",
          id: 7,
        },
        {
          xuhao: "G8",
          url: "4qcNZearZT&lang=zh&firstView=pano:74,qua:0.0027,-0.7441,0.003,0.668",
          name: "国泰新点软件股份有限公司",
          id: 8,
        },
        {
          xuhao: "G9",
          url: "4qcNZearZT&lang=zh&firstView=pano:72,qua:0.0091,0.7307,-0.0098,0.6826",
          name: "厦门市美亚柏科信息股份有限公司 ",
          id: 9,
        },
        {
          xuhao: "G10",
          url: "4qcNZearZT&lang=zh&firstView=pano:136,qua:-0.0019,-0.0092,0,1",
          name: "西湾智慧（广东）信息科技有限公司",
          id: 10,
        },
        {
          xuhao: "G11",
          url: "4qcNZearZT&lang=zh&firstView=pano:16,qua:-0.0002,0.9998,0.0136,0.0119",
          name: "广州数鹏通科技有限公司",
          id: 11,
        },
        {
          xuhao: "G12",
          url: "4qcNZearZT&lang=zh&firstView=pano:98,qua:0.0001,0.0687,0,0.9976",
          name: "福建博思软件股份有限公司",
          id: 12,
        },
        {
          xuhao: "G13",
          url: "4qcNZearZT&lang=zh&firstView=pano:28,qua:0,1,0.0026,-0.0041",
          name: "广州政企互联科技有限公司",
          id: 13,
        },
        {
          xuhao: "G14",
          url: "4qcNZearZT&lang=zh&firstView=pano:86,qua:-0.0015,0.8086,0.002,0.5883",
          name: "广东南方数码科技股份有限公司",
          id: 14,
        },
      ],

    },
    {
      p_id: 6, //对应primary的id
      bgclr: "#66AF6B",
      data: [
        {
          xuhao: "H1",
          url: "M91pzm1c1Y&lang=zh&firstView=pano:60,qua:-0.0152,-0.7088,-0.0153,0.7051",
          name: "广东中浦科技有限公司",
          id: 1,
        },
        {
          xuhao: "H2",
          url: "M91pzm1c1Y&lang=zh&firstView=pano:2,qua:-0.0127,0.6722,0.0115,0.7402",
          name: "统信软件技术有限公司",
          id: 2,
        },
        {
          xuhao: "H3",
          url: "M91pzm1c1Y&lang=zh&firstView=pano:4,qua:-0.0312,-0.6974,-0.0305,0.7153",
          name: "北京数字认证股份有限公司",
          id: 3,
        },
        {
          xuhao: "H4",
          url: "M91pzm1c1Y&firstView=pano:40,qua:-0.0199,0.7012,0.0196,0.7124",
          name: "金税信息技术服务股份有限公司",
          id: 4,
        },
        {
          xuhao: "H5",
          url: "M91pzm1c1Y&lang=zh&firstView=pano:62,qua:-0.0138,-0.7118,-0.014,0.7021",
          name: "北京国脉信安科技有限公司",
          id: 5,
        },
        {
          xuhao: "H6",
          url: "M91pzm1c1Y&lang=zh&firstView=pano:4,qua:-0.0312,0.6947,0.0302,0.718",
          name: "润建股份有限公司",
          id: 6,
        },
        {
          xuhao: "H7",
          url: "M91pzm1c1Y&firstView=pano:18,qua:0.0106,-0.0071,0.0001,0.9999",
          name: "广东紫晶信息存储技术股份有限公司",
          id: 7,
        },
        {
          xuhao: "H8",
          url: "M91pzm1c1Y&firstView=pano:20,qua:0.0173,-0.0186,0.0003,0.9997",
          name: "广东三鼎实业集团有限公司",
          id: 8,
        },
        {
          xuhao: "H9",
          url: "M91pzm1c1Y&firstView=pano:42,qua:-0.0241,0.7139,0.0246,0.6994",
          name: "广东智信信息科技股份有限公司",
          id: 9,
        },
        {
          xuhao: "H10",
          url: "M91pzm1c1Y&lang=zh&firstView=pano:10,qua:-0.0001,0.9996,0.0295,0.0031",
          name: "广东国腾量子科技有限公司",
          id: 10,
        },
        {
          xuhao: "H11",
          url: "M91pzm1c1Y&firstView=pano:12,qua:0,1,-0.0053,-0.0053",
          name: "北京建设数字科技有限公司",
          id: 11,
        },
        {
          xuhao: "H12",
          url: "M91pzm1c1Y&firstView=pano:14,qua:0,0.9999,-0.0139,0.0031",
          name: "广东信航信息技术有限公司",
          id: 12,
        },
        {
          xuhao: "H13",
          url: "M91pzm1c1Y&firstView=pano:16,qua:0,0.9999,-0.0158,-0.0012",
          name: "瀚蓝环境股份有限公司",
          id: 13,
        },
        {
          xuhao: "H14",
          url: "M91pzm1c1Y&firstView=pano:24,qua:0,0.9999,0.0092,0.0053",
          name: "国衡智慧（广东）科技有限公司",
          id: 14,
        },
        {
          xuhao: "H15",
          url: "M91pzm1c1Y&firstView=pano:28,qua:0,1,-0.0047,0.0019",
          name: "广东数字生态科技有限责任公司",
          id: 15,
        },
        {
          xuhao: "H16",
          url: "M91pzm1c1Y&firstView=pano:30,qua:-0.0063,-0.7145,-0.0065,0.6995",
          name: "云浮市物联网研究院有限公司",
          id: 16,
        },
        {
          xuhao: "H17",
          url: "M91pzm1c1Y&firstView=pano:32,qua:-0.0062,-0.7013,-0.0061,0.7128",
          name: "东莞先知大数据有限公司",
          id: 17,
        },
        {
          xuhao: "H18",
          url: "M91pzm1c1Y&firstView=pano:34,qua:-0.0117,-0.7124,-0.0119,0.7016",
          name: "广州中大凯旋电子科技有限公司",
          id: 18,
        },
        {
          xuhao: "H19",
          url: "M91pzm1c1Y&firstView=pano:36,qua:-0.0103,-0.7159,-0.0105,0.698",
          name: "广东柯内特环境科技有限公司",
          id: 19,
        },
        {
          xuhao: "H20",
          url: "M91pzm1c1Y&firstView=pano:44,qua:-0.0062,-0.712,-0.0063,0.7021",
          name: "广东省广播电视网络股份有限公司",
          id: 20,
        },
      ],
    },
  ],
};

let loop = (main, sub) => {
  let data = main.map((item) => {
    sub.forEach((sub) => {
      if (item.id === sub.p_id) {
        item.sub = sub;
        item.show = false;
      }
    });
    return item;
  });

  return data;
};

let data = loop(raw.primary, raw.secondary);

module.exports = {
  data,
  raw,
};
